package model.Actions;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import DB.Connection.DBConnectionManager;

import commons.Entities.User;

public class updateUserInDBAction implements Runnable {

	private static final Log logger = LogFactory.getLog(updateUserInDBAction.class);

	private User user;

	public updateUserInDBAction(User user) {
		this.user = user;
	}

	@Override
	public void run() {
		logger.info("updateUserInDBAction starting...");

		DBConnectionManager.get().updateToUserTable(user);

		logger.info("updateUserInDBAction ended.");
	}
}
